import lupa
from lupa import LuaRuntime
lua = LuaRuntime()

lup.eval('print("hello lupa")')

lua_func = lua.eval('function(f, n) return f(n) end')

def py_add1(n):
     return n+1

lua_func(py_add1, 2)

lua.eval('python.eval(" 2 ** 2 ")') == 4

lua.eval('python.builtins.str(4)') == '4'
